package com.yk.filedownload.entity;

import org.json.JSONObject;

import java.io.Serializable;

/**
 * Project Name:cykfiledownload
 * File Name:HeaderCarrier
 * Package Name:com.yk.filedownload.entity
 * Date:2017\12\6 0006
 * Author:dengtianjia
 * Description:
 * Copyright (c) 2017, 重庆云凯科技有限公司 All Rights Reserved.
 */
public class HeaderCarrier implements Serializable {

    /**
     * 文件id
     */
    private String FileId;
    /**
     * 文件大小
     */
    private int FileSize;
    /**
     * 数据载体数
     */
    private int PackNum;
    /**
     *文件类型，直接提供后缀名
     */
    private String fileType;

    /**
     * 文件信息
     */
    private String fileInfo;

    public String getFileId() {
        return FileId;
    }

    public void setFileId(String fileId) {
        FileId = fileId;
    }

    public int getFileSize() {
        return FileSize;
    }

    public void setFileSize(int fileSize) {
        FileSize = fileSize;
    }

    public int getPackNum() {
        return PackNum;
    }

    public void setPackNum(int packNum) {
        PackNum = packNum;
    }

    public String getFileInfo() {
        return fileInfo;
    }

    public void setFileInfo(String fileInfo) {
        this.fileInfo = fileInfo;
    }

    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    public String getJson(){
        JSONObject obj = new JSONObject();
        obj.put("FileId",FileId);
        obj.put("FileSize",FileSize);
        obj.put("PackNum",PackNum);
        obj.put("FileType",fileType);
        obj.put("FileInfo",fileInfo);
        return obj.toString();
    }
}
